﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using System.Data;
using BizUserDALEntities;

 namespace BizUserDAL

{
    class BizBAL
    {
        public void DeleteBizInfo(int BizID)
        {
            iBizInfo oBizInfo = GetBizInfo();
            oBizInfo.DeleteBizInfo(BizID);
        }
        public void SaveBizInfo(BizInfo oBiz)
        {
            iBizInfo oBizInfo = GetBizInfo();
            oBizInfo.SaveBizInfo(oBiz);
        }
        /*
        public List<BizInfo> GetBizs()
        {
            iBizInfo oBizInfo = GetBizInfo();
            return oBizInfo.GetBizs();
        }
        */
        public iBizInfo GetBizInfo()
        {
            iBizInfo oBizInfo = new BizDAL();
            return oBizInfo;
        }
    }


    class UserBAL
    {
        public void DeleteUserInfo(int UserID)
        {
            iUserInfo oUserInfo = GetUserInfo();
            oUserInfo.DeleteUserInfo(UserID);
        }
        public void SaveUserInfo(UserInfo oUser)
        {
            iUserInfo oUserInfo = GetUserInfo();
            oUserInfo.SaveUserInfo(oUser);
        }
        /*
        public List<UserInfo> GetUsers()
        {
            iUserInfo oUserInfo = GetUserInfo();
            return oUserInfo.GetUsers();
        }
        */
        public iUserInfo GetUserInfo()
        {
            iUserInfo oUserInfo = new UserDAL();
            return oUserInfo;
        }
    }
 }
